<?php
include "conn.php";
$id = $_POST['id'];
$a = $_POST['input1'];
$b = $_POST['input2'];
$c = $_POST['input3'];
$d = $_POST['input4'];
$e = $_POST['input5'];
$main = new main();
$result = $main->addAdmin($id,$a,$b,$c,$d,$e);
if ($result === 1 or $result === 0){
    $aa['error'] = 1;//成功
}else{
    $aa['error'] = 0;
}
echo json_encode($aa);